/**
 * <p>����:sqlmap�����ļ�</p>
 * <p>����: </p>
 * @���ߣ�������
 * @����ʱ�䣺20081112
 */
package com.lg.system;

import com.ibatis.sqlmap.client.SqlMapClientBuilder;
import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import java.io.Reader;

/**
 * @author yyx
 *
 */
public class CSqlMap extends CLGAction{
	
	public static SqlMapClient getSqlMapConfig(){
	String resource = "/SqlMapConfig.xml";
	SqlMapClient sqlMap = null;
	try {
		Reader reader = Resources.getResourceAsReader(resource);
		sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
	} catch (Exception e) {
		logger.info("配置sqlmap时发生错误");
		e.printStackTrace();
	}
	return sqlMap;
	}

}
